﻿//=====================================================
// Copyright © 2017-2018 xuxuzhaozhao
// All rights reserved
// GUID: 13121705-f478-4e65-8fed-0726218bb2af
// CLR版本: 4.0.30319.42000
// 命名空间名称: xuxuzhaozhao.Blog.Application.XuAritcleService
// 文件名: XuArticleTypeService
// 当前系统时间: 2017/11/8 11:46:30
// 当前登录用户名: xuxuzhaozhao
//======================================================

using System;
using xuxuzhaozhao.Blog.Application.XuAritcleService.Dto.ArticleType;
using xuxuzhaozhao.Blog.Infrastructure.XuTools;

namespace xuxuzhaozhao.Blog.Application.XuAritcleService
{
    public interface IXuArticleTypeService
    {
        //保存文章类型
        XuResult Save(SaveInput input, string user);

        //删除文章类型
        XuResult Del(int id);

        //文章类型列表（前台）
        XuResult GetListFront(PageInput input);

        //文章类型列表（后台）
        XuResult GetListBehind(PageInput input);
    }
    public class XuArticleTypeService : IXuArticleTypeService
    {
        public XuResult Del(int id)
        {
            throw new NotImplementedException();
        }

        public XuResult GetListBehind(PageInput input)
        {
            throw new NotImplementedException();
        }

        public XuResult GetListFront(PageInput input)
        {
            throw new NotImplementedException();
        }

        public XuResult Save(SaveInput input, string user)
        {
            return input.Id > 0 ? Modified(input, user) : Add(input, user);
        }

        private XuResult Add(SaveInput input, string user)
        {
            throw new NotImplementedException();
        }

        private XuResult Modified(SaveInput input, string user)
        {
            throw new NotImplementedException();
        }
    }
}
